package service.admin.impl;

import dao.admin.BookSortDao;
import dao.admin.impl.BookSortDaoImpl;
import entity.Book_sort;
import service.admin.BookSortService;

import java.util.List;

/**
 * BookSortServiceImpl
 *
 * @author 谭文斌
 * @since 2023/9/5
 */
public class BookSortServiceImpl implements BookSortService {
    BookSortDao dao=new BookSortDaoImpl();

    @Override
    public List<Book_sort> getList() {
        return dao.getList();
    }

    @Override
    public int add(Book_sort book) {
        return dao.add(book);
    }

    @Override
    public int del(int id) {
        return dao.del(id);
    }

    @Override
    public int upd(Book_sort book) {
        return dao.upd(book);
    }

    @Override
    public int getName(String name) {
        return dao.getName(name);
    }

    @Override
    public int updId(int oldSort_id) {
        return dao.updId(oldSort_id);
    }
}
